Ext.define('carManage.view.peccancyInfo.GridList', {
    extend: 'Ext.grid.Panel',
    store: 'PeccancyInfoStore',
    alias: 'widget.gridList',
    selModel: Ext.create('Ext.selection.CheckboxModel', {mode: "SIMPLE"}),
    initComponent: function() {
        this.columns = [
            {
                header: '编号',
                sortable: true,
                hidden: true,
                dataIndex: 'id'
            }, {
                header: '车牌号码',
                sortable: true,
                width: 86,
                dataIndex: 'car_code'
            }, {
                header: '驾驶员',
                sortable: true,
                width: 86,
                dataIndex: 'driver'
            }, {
                header: '违章时间',
                sortable: true,
                width: 86,
                dataIndex: 'time'
            }, {
                header: '违章事项',
                sortable: true,
                width: 156,
                dataIndex: 'detail'
            }, {
                header: '违章地点',
                sortable: true,
                width: 156,
                dataIndex: 'area'
            }, {
                header: '处理结果',
                sortable: true,
                width: 156,
                dataIndex: 'process'
            }, {
                header: '备注',
                sortable: true,
                width: 156,
                dataIndex: 'remark'
            }
        ];

        this.bbar = new Ext.PagingToolbar({
            store: 'PeccancyInfoStore',
            emptyMsg: '没有数据需要显示',
            displayInfo: true
        });
        this.callParent(arguments);
    }
});